<template>
  <ez-open-web-plugin-player v-if="accessToken" v-bind="$attrs" :access-token="accessToken" />
  <vlc-web-plugin-player v-else v-bind="$attrs" />
</template>

<script>
import EzOpenWebPluginPlayer from './EzOpenWebPluginPlayer.vue';
import VlcWebPluginPlayer from './VlcWebPluginPlayer.vue';

export default {
  name: 'VlcEzOpenPlayer',
  components: { VlcWebPluginPlayer, EzOpenWebPluginPlayer },
  props: {
    accessToken: { type: String, default: '' },
  },
};
</script>

<style scoped lang="less"></style>
